package com.mars.upms.rpc.api;

import java.util.List;

import com.mars.base.service.support.IService;
import com.mars.upms.dto.UpmsRoleDto;
import com.mars.upms.entity.UpmsRole;
import com.mars.upms.entity.UpmsRolePermissionAssign;

public interface UpmsRoleService extends IService<UpmsRole, Integer> {

	/**
	 * 分配权限到角色
	 * @param dto
	 */
	public void assignPermission(UpmsRoleDto dto) ;
	
	/**
	 * 根据角色ID查询角色权限关系表
	 * @param roleId
	 * @return
	 */
	public List<UpmsRolePermissionAssign> getRolePermissionAssign(Integer roleId) ;

	/**
	 * 将用从角色中移除
	 * @param roleUserAssignId
	 */
	public void removeRoleUser(Integer roleUserAssignId);
	
}
